package com.shuai.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shuai.common.constant.ChatType;
import com.shuai.common.dto.SessionChatRecordDTO;
import com.shuai.user.domain.entity.SessionChatRecord;
import com.shuai.user.domain.vo.MessageVO;
import com.shuai.user.service.SessionChatRecordService;
import com.shuai.user.mapper.SessionChatRecordMapper;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author bxs
 * @description 针对表【session_chat_record】的数据库操作Service实现
 * @createDate 2024-07-04 13:19:29
 */
@Service
public class SessionChatRecordServiceImpl extends ServiceImpl<SessionChatRecordMapper, SessionChatRecord>
        implements SessionChatRecordService {


    @Override
    public List<MessageVO> listUserSessionChatRecord(String userId, Long sessionId, ChatType ordinaryChat) {
        return this.baseMapper.listUserSessionChatRecord(userId, sessionId, ordinaryChat.getCode());
    }
}




